﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Bxas.Core;
using Bxas.Core.Exceptions;
using PhotoHsn.BLL.Adapters;
using System.Diagnostics;

namespace PhotoHsn.BLL.Core
{
    public class BaseBs : CoreBs
    {

        public BaseBs()
        {
            //connectionManagecr = new ConnectionManager(Properties.Settings.Default.conString);
        }


        //public Exception ErrorLogInsert(Exception p_ex, object p_class, StackFrame p_function)
        //{
        //    if (p_ex.Message != "sql")
        //    {
        //        try
        //        {

        //            ProjectErrorsBs projectErrorBs = new ProjectErrorsBs();
        //            ProjectErrors projectErrors = new ProjectErrors();
        //            projectErrors.Cls = p_class.GetType().Name;
        //            projectErrors.ErrorCode = p_ex.GetHashCode().ToString();
        //            projectErrors.ErrorDate = DateTime.Now;
        //            projectErrors.Func = p_function.GetMethod().Name;
        //            projectErrors.Id = Guid.NewGuid();
        //            projectErrors.Message = p_ex.Message;
        //            projectErrorBs.insert(projectErrors);
        //            return new BxasCoreException(ExceptionFormatter.ResolveException(p_ex), p_ex);
        //        }
        //        catch (Exception exx)
        //        {
        //            return new BxasCoreException(ExceptionFormatter.ResolveException(exx), exx);
        //        }
        //    }
        //    else
        //        return new Exception(ExceptionFormatter.ResolveException(p_ex));

        //}

              

    }
}
